Skip to content

deployment,apollo_deployments: drop config_format plumbing and retire preset config path#14646

Open
nimrod-starkware wants to merge 1 commit into
nimrod/jsonnet/testing-overlays-native-layersfrom
nimrod/jsonnet/retire-preset-config-path
Open

deployment,apollo_deployments: drop config_format plumbing and retire preset config path#14646
nimrod-starkware wants to merge 1 commit into
nimrod/jsonnet/testing-overlays-native-layersfrom
nimrod/jsonnet/retire-preset-config-path

Conversation

@nimrod-starkware

Copy link
Copy Markdown
Contributor

Make native the sole config path in the cdk8s deploy and remove the now-dead
preset machinery:

  • Delete the --config_format container arg (pod_builder) and the whole config_format
    plumbing (cli.py --config-format flag + threading through app.py, charts/node.py,
    constructs/{deployment,statefulset,configmap}). Phase 1 removed --config_format from
    the Rust node's parser, so emitting it to the container made the node panic on an
    unknown arg; the node now receives only --config_file. Verified by running the node
    on a synthesized native ConfigMap (reaches 'Finished loading configuration').
  • Retire the python preset path: delete NodeConfigLoader and the $$$ placeholder-fill
    machinery (loaders.py); ConfigMap is always built via build_native_config.
  • Remove the two preset-parity python tests + their preset-only helpers; keep all native
    mirror/deep-merge/port tests.

All hybrid overlays (mainnet, sepolia-alpha, sepolia-integration, testing/node-0,
testing/all-constructs) synth nested native; no synthesized container passes
--config_format; pytest test/ green.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

nimrod-starkware commented Jun 28, 2026

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nimrod-starkware nimrod-starkware force-pushed the nimrod/jsonnet/retire-preset-config-path branch from 0df4a4a to a07b98f Compare June 28, 2026 10:14
@nimrod-starkware nimrod-starkware force-pushed the nimrod/jsonnet/testing-overlays-native-layers branch from 39a3bb3 to e704bbc Compare June 28, 2026 10:14
@nimrod-starkware nimrod-starkware force-pushed the nimrod/jsonnet/testing-overlays-native-layers branch from e704bbc to b9c5305 Compare June 28, 2026 10:30
@nimrod-starkware nimrod-starkware force-pushed the nimrod/jsonnet/retire-preset-config-path branch from a07b98f to a3d7879 Compare June 28, 2026 10:30
… preset config path

Make native the sole config path in the cdk8s deploy and remove the now-dead
preset machinery:
- Delete the --config_format container arg (pod_builder) and the whole config_format
  plumbing (cli.py --config-format flag + threading through app.py, charts/node.py,
  constructs/{deployment,statefulset,configmap}). Phase 1 removed --config_format from
  the Rust node's parser, so emitting it to the container made the node panic on an
  unknown arg; the node now receives only --config_file. Verified by running the node
  on a synthesized native ConfigMap (reaches 'Finished loading configuration').
- Retire the python preset path: delete NodeConfigLoader and the $$$ placeholder-fill
  machinery (loaders.py); ConfigMap is always built via build_native_config.
- Remove the two preset-parity python tests + their preset-only helpers; keep all native
  mirror/deep-merge/port tests.

All hybrid overlays (mainnet, sepolia-alpha, sepolia-integration, testing/node-0,
testing/all-constructs) synth nested native; no synthesized container passes
--config_format; pytest test/ green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nimrod-starkware nimrod-starkware force-pushed the nimrod/jsonnet/testing-overlays-native-layers branch from b9c5305 to 66a55ac Compare June 28, 2026 14:04
@cursor

cursor Bot commented Jun 29, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Touches how every synthesized sequencer pod gets its config at startup; mis-synth or overlay gaps would surface as node load failures rather than silent preset drift.

Overview
Native jsonnet is now the only way the CDK8s sequencer deployment builds node ConfigMaps and wires pods. The --config-format CLI flag and config_format threading through charts and constructs are removed.

Preset path deleted: NodeConfigLoader and the $$$_..._$$$ placeholder fill / YAML sequencerConfig validation stack are gone from loaders.py. ConfigMapConstruct always calls build_native_config().

Container args fixed: Pods no longer pass --config_format (removed from the Rust parser); they only get --config_file for the mounted nested config, matching apollo_config.

Reviewed by Cursor Bugbot for commit 4dfdb44. Bugbot is set up for automated code reviews on this repo. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants